php counting number of chars excluding newlines

102

php counting number of chars excluding newlines -

echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));

Comments

Submit
0 Comments